{include file="common/header.tpl"}
<section class="main">	
	<nav class="left-col">{include file="common/navi-system.tpl"}</nav>
    <article class="right-col">
    	<h2>SEO{if $AppUI->type > 1 && isset($smarty.session.seo) && ($smarty.session.seo&1<<0) > 0} &raquo; <a href="{$smarty.const.HOST_BACKEND}seo/add">Thêm mới</a>{/if}</h2>    
        <form name="frmCategory" id="frmCategory" action="{$smarty.const.HOST_BACKEND}seo/act" method="post" enctype="multipart/form-data">
            <input type="hidden" name="paction" id="paction"/>
            <input type="hidden" name="pbackurl" id="pbackurl" value="{$smarty.const.HOST_BACKEND}seo/index"/> 
            <table width="100%" cellpadding="0" cellspacing="0" border="0" class="list">
                <thead>
                    <tr>
                        <th width="80">Controller</th>     
                        <th width="80">Action</th>
                        <th width="100">Trang</th>         
                        <th width="100">Tiêu đề</th>
                        <th width="100">Từ khóa</th>
                        <th>Mô tả</th>
                        <th width="120">Ngày đăng</th>                        
                        {if $arrResult} 
                            <th width="20">&nbsp;</th>
                        {/if}
                    </tr>
                </thead>
                <tbody>
                    {if $arrResult}
                        {foreach item=item from=$arrResult}
                            <tr class="{cycle values="odd,even"}">
                                <td class="firstChild">{$item.controller}</td>
                                <td>{$item.action}</td>
                                <td>{$item.name}</td>
                                <td>{$item.title}</td>
                                <td>{$item.keywords}</td>
                                <td>{$item.description}</td>
                                <td align="center">{$item.postdate|date_format:"%d/%m/%Y %H:%M:%S"}</td>
                                <td align="center">
                                    {if ($smarty.session.seo&1<<2)>0}
                                        <a href="{$smarty.const.HOST_BACKEND}seo/edit?seoid={$item.seoid}" title="Cập nhật thông tin">
                                            <img src="{$smarty.const.HOST_STATICS}backend/img/ad-edit.png" alt="Edit" border="0" width="16" height="16" />
                                        </a>
                                    {/if}
                                </td>
                            </tr>
                        {/foreach}
                    {else}
                        <tr><td align="center" colspan="7">Không có dữ liệu</td></tr>
                    {/if}
                </tbody>
            </table>
        </form>
	</article>
</section>
{include file="common/footer.tpl"}
                
